<!DOCTYPE html>
<html>
<head>
    <title>设置</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background: rgba(255, 255, 204, 0.95);
            font-family: 'Microsoft YaHei', sans-serif;
            color: #333;
            user-select: none;
            -webkit-user-select: none;
        }

        .settings-container {
            width: 100%;
            height: 100vh;
            max-width: 340px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
        }

        .title-bar {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 10px;
            background-color: rgba(65, 105, 225, 0.1);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            -webkit-app-region: drag;
            position: relative;
        }

        .title-text {
            font-size: 16px;
            font-weight: bold;
            color: #333;
        }

        .close-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #ff4444;
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 12px;
            opacity: 0;
            transition: opacity 0.2s;
            -webkit-app-region: no-drag;
            z-index: 1000;
        }

        .title-bar:hover .close-btn {
            opacity: 1;
        }

        .close-btn:hover {
            background: #ff6666;
            transform: translateY(-50%) scale(1.1);
        }

        .settings-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }

        .setting-group {
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 8px;
        }

        .setting-label {
            font-size: 14px;
            color: #333;
        }

        /* 开关按钮样式 */
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: #4CAF50;
        }

        input:checked + .slider:before {
            transform: translateX(26px);
        }

        .about-section {
            margin-top: 30px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 4px;
            font-size: 13px;
            color: #666;
            text-align: center;
        }

        .about-section h3 {
            margin: 0 0 10px 0;
            color: #333;
            font-size: 14px;
        }

        .about-section p {
            margin: 5px 0;
            line-height: 1.4;
        }

        .about-section a {
            color: #4CAF50;
            text-decoration: none;
        }

        .about-section a:hover {
            text-decoration: underline;
        }

        .quit-btn {
            width: 100%;
            padding: 12px;
            margin-top: 20px;
            background: #ff4444;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
            -webkit-app-region: no-drag;
            outline: none;
        }

        .quit-btn:hover {
            background: #ff6666;
            transform: scale(1.02);
        }

        .quit-btn:active {
            transform: scale(0.98);
        }
    </style>
</head>
<body>
    <div class="settings-container">
        <div class="title-bar">
            <div class="title-text">设置</div>
            <button class="close-btn" onclick="closeWindow()">✕</button>
        </div>
        <div class="settings-content">
            <div class="setting-group">
                <span class="setting-label">开机自动启动</span>
                <label class="switch">
                    <input type="checkbox" id="autoLaunch">
                    <span class="slider"></span>
                </label>
            </div>
            
            <div class="about-section">
                <h3>关于 MemoNote</h3>
                <p>版本 1.0.1</p>
                <p>一个简单而实用的桌面便签工具</p>
                <p>成大附小信息中心出品</p>
                <p>© 2025 MemoNote. 保留所有权利。</p>
            </div>

            <button id="quitButton" class="quit-btn" type="button">退出程序</button>
        </div>
    </div>
    <script src="js/settings.js"></script>
</body>
</html> 